import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/Table';

export const columns: BasicColumn[] = [
  {
    title: '标题',
    dataIndex: 'htmlTitle',
    width: 150,
  },
  {
    title: '创建时间',
    dataIndex: 'createTime',
    width: 150,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'htmlTitle',
    label: '标题',
    component: 'Input',
    colProps: { span: 4 },
  },
];

export const formSchema: FormSchema[] = [
  {
    label: '标题',
    field: 'htmlTitle',
    component: 'Input',
    required: true,
  },
  {
    label: '内容',
    field: 'htmlContent',
    component: 'TyEditor',
    required: true,
  },
];
